package engine.render.type;

import engine.render.GLManager;
import engine.res.Color;
import engine.res.Fonts;

public class RasterText 
{
    
    public int x;
    public int y;
    public String str;
    public Color colorMod;
    
    public RasterText(int xpos, int ypos, String text) 
    {
        x = xpos;
        y = ypos;
        str = text;
        colorMod = Color.WHITE;
    }
    
    public RasterText(int xpos, int ypos, String text, Color modifier) 
    {
        x = xpos;
        y = ypos;
        str = text;
        colorMod = modifier;
    }
    
    public void render(GLManager glManager) 
    {
        glManager.bindColor(colorMod);
        Fonts.rasterer().rasterText(x, y, str);
    }
    
}
